<template>
  <div id="app">
    <nav>
      <router-link to="/" tag="span">商品列表</router-link>
      <router-link to="/shopcart" tag="span">购物车</router-link>
    </nav>
    <router-view/>
  </div>
</template>

<style>
  * {
    padding: 0;
    margin: 0;
  }
</style>

<style scoped>
  #app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* text-align: center; */
    color: #2c3e50;
  }

  nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50px;
  }

  nav span {
    width: 50%;
    height: 100%;
    display: inline-block;
    text-align: center;
    line-height: 50px;
    border-top: 1px solid #ccc;
    background-color: white;
  }

  nav span.router-link-exact-active {
    color: #F19741;
    background-color: #FEF5EF;
    font-weight: bold;
  }
</style>
